package com.audaque.springboot.foshanupload.web.esdatademo.repository;



import com.audaque.springboot.foshanupload.web.esdatademo.model.pojo.UserDto;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.*;

/**
 * Elasticsearch持久层类（用户）
 */
@Repository
public interface UserRepository extends ElasticsearchRepository<UserDto,String> {

    /**
     * 查询用户信息
     * @param username
     * @return
     */
    UserDto getUserDtoByUsername(String username);
}